import request from '@/utils/request'

// 查询语音自动播报设置列表
export function listVoiceconfig(query) {
  return request({
    url: '/yun/voiceconfig/list',
    method: 'get',
    params: query
  })
}

// 查询语音自动播报设置详细
export function getVoiceconfig(id) {
  return request({
    url: '/yun/voiceconfig/' + id,
    method: 'get'
  })
}

// 新增语音自动播报设置
export function addVoiceconfig(data) {
  return request({
    url: '/yun/voiceconfig',
    method: 'post',
    data: data
  })
}

// 修改语音自动播报设置
export function updateVoiceconfig(data) {
  return request({
    url: '/yun/voiceconfig',
    method: 'put',
    data: data
  })
}

// 删除语音自动播报设置
export function delVoiceconfig(id) {
  return request({
    url: '/yun/voiceconfig/' + id,
    method: 'delete'
  })
}
